package com.wei.charge.controller;

import com.wei.common.entity.Charge;
import com.wei.common.service.ChargeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author weichuanyuan
 * @version 1.0
 * @date 2021/8/29 10:54
 */
@RestController
@RequestMapping("/charge")
public class ChargeController {

    @Autowired
    private ChargeService chargeService;

    @GetMapping("/charging")
    public String charging(){
        Charge charge = new Charge();
        chargeService.Charging(charge);
        return "sucess";
    }

}
